package cn.hello1023.springbootlabs.controller;

import cn.hello1023.springbootlabs.pojo.User;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Date;


@RestController
public class HelloWorld {
    @RequestMapping("/")
    public User hello(){
        User user = new User();
        user.setAge(18);
        user.setDate(new Date());
        System.out.println(user);

        return user;
    }
}
